package msgs;

/**
 * Used for setting up and for delivering offline PM messages
 * Team 9: Andrew Hayworth, Brian Parrella, Ryan Kortmann, Nina Papa
 * @author Andrew Hayworth
 *
 */

public class OfflinePMMsg extends ClientMsg implements TTConstants {
	private String fromUser;
	private String toUser;
	private String msg;
	
	public OfflinePMMsg(String ip, String name, String pwd, byte[] key, String fromUser, String msg, String toUser) {
		super(ip, name, pwd, key);
		this.fromUser = fromUser;
		this.msg = msg;
		this.toUser = toUser;
	}

	public OfflinePMMsg(ConnectedUser c, Actions a, String fromUser, String msg, String toUser) {
		super(c, a);
		this.msg = msg;
		this.fromUser = fromUser;
		this.toUser = toUser;
	}

	/**
	 * @return the toUser
	 */
	public String getToUser() {
		return toUser;
	}

	/**
	 * @param toUser the toUser to set
	 */
	public void setToUser(String toUser) {
		this.toUser = toUser;
	}

	/**
	 * @return the msg
	 */
	public String getMsg() {
		return msg;
	}

	/**
	 * @param msg the msg to set
	 */
	public void setMsg(String msg) {
		this.msg = msg;
	}

	/**
	 * @return the fromUser
	 */
	public String getFromUser() {
		return fromUser;
	}

	/**
	 * @param fromUser the fromUser to set
	 */
	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}

	
}
